package com.beagle.njddapp.ui.activity;

import android.content.Intent;
import android.graphics.Color;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.beagle.njddapp.R;
import com.beagle.njddapp.base.BaseMvpActivity;
import com.beagle.njddapp.ui.presenter.MessagePresenter;
import com.beagle.njddapp.ui.presenter.WalletPresenter;
import com.beagle.njddapp.ui.view.MessageView;
import com.beagle.njddapp.ui.view.WalletView;
import com.beagle.njddapp.utils.StatusBarUtil;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author hxx
 * @date 2021-03-02 22:31
 * 钱包
 */
public class WalletActivity extends BaseMvpActivity<WalletView, WalletPresenter> implements WalletView {

    @BindView(R.id.commom_title_tv)
    TextView tvTitle;
    @BindView(R.id.common_container)
    RelativeLayout container;
    @BindView(R.id.common_tv_right)
    TextView tvRight;


    @Override
    public int getLayoutId() {
        return R.layout.activity_wallet;
    }




    @Override
    public void init() {
        StatusBarUtil.immersive(this);
        StatusBarUtil.darkMode(this);
        StatusBarUtil.setPaddingSmart(this,container);
        tvTitle.setText("我的钱包");
        container.setBackgroundColor(Color.WHITE);
        tvRight.setText("账单");

    }

    @Override
    public WalletView getMvpView() {
        return this;
    }

    @Override
    public WalletPresenter createPresenter() {
        return new WalletPresenter();
    }

    @Override
    public void onError(String message) {

    }
    @OnClick({R.id.common_back_iv,R.id.common_tv_right})
    public void onCLick(View view){
        switch (view.getId()){
            case R.id.common_back_iv:
                onBackPressed();
                break;
            case R.id.common_tv_right:
               startActivity(new Intent(this,PayOrderActivity.class));
                break;
        }
    }
}
